package com.example.workmode.Content;

import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;

public class TaskContract {

	public static final String AUTHORITY = "com.example.workmode.Content.data";

	public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY);

	public static final class Task implements BaseColumns {

		public static final String PATH = "task";

		public static final Uri CONTENT_URI = Uri.withAppendedPath(
				TaskContract.CONTENT_URI, PATH);

		public static final String CONTENT_DIR_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + AUTHORITY + PATH;
		public static final String CONTENT_ITEM_TYPE = ContentResolver.CURSOR_ITEM_BASE_TYPE + AUTHORITY + PATH;

		public static final String NAME = "name";
		public static final String DUEDATE = "duedate";
		public static final String TODAY = "today";

		public static final String[] PROJECTION_ALL = {_ID, _COUNT, NAME, DUEDATE};

		public static final String SORT_ORDER_DEFAULT = TODAY + " DESC";
		public static final String SORT_ORDER_DUEDATE = DUEDATE + "DESC";
	}
}